﻿using System;
using Microsoft.Xna.Framework.Graphics;
using Terraria.GameContent.UI.Elements;
using Terraria.UI;

namespace Terraria.ModLoader.UI.Elements
{
	// Token: 0x020002BA RID: 698
	public class FixedUIScrollbar : UIScrollbar
	{
		// Token: 0x06001B76 RID: 7030 RVA: 0x00013BE1 File Offset: 0x00011DE1
		public FixedUIScrollbar(UserInterface userInterface)
		{
			this.userInterface = userInterface;
		}

		// Token: 0x06001B77 RID: 7031 RVA: 0x00430FD0 File Offset: 0x0042F1D0
		protected override void DrawSelf(SpriteBatch spriteBatch)
		{
			UserInterface activeInstance = UserInterface.ActiveInstance;
			UserInterface.ActiveInstance = this.userInterface;
			base.DrawSelf(spriteBatch);
			UserInterface.ActiveInstance = activeInstance;
		}

		// Token: 0x06001B78 RID: 7032 RVA: 0x00430FFC File Offset: 0x0042F1FC
		public override void MouseDown(UIMouseEvent evt)
		{
			UserInterface activeInstance = UserInterface.ActiveInstance;
			UserInterface.ActiveInstance = this.userInterface;
			base.MouseDown(evt);
			UserInterface.ActiveInstance = activeInstance;
		}

		// Token: 0x0400188C RID: 6284
		internal UserInterface userInterface;
	}
}
